package com.kvest.scanrecognizer.network;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 30.08.13
 * Time: 21:16
 * To change this template use File | Settings | File Templates.
 */
public abstract class Urls {
    public static final String OCR_URL = "http://ocrservice.siteok.net/api/ocr/";
    public static final String RECOGNIZE_REQUEST = "recognize";
    public static final String RECOGNIZE_REQUEST_URL = OCR_URL + RECOGNIZE_REQUEST;
    public static final String STATUS_REQUEST = "status";
    public static final String DOWNLOAD_REQUEST = "download";
    public static final String DOWNLOAD_FORMAT_PARAM = "type";
    public static final String UPLOAD_REQUEST = "upload";
    public static final String UPLOAD_FILE_PARAM = "file";
    public static final String CLIENT_ID_PARAM = "client_id";
    public static final String UPLOAD_ROTATE_DEGREES_PARAM = "rotate_degrees";
    public static final String UPLOAD_REQUEST_URL = OCR_URL + UPLOAD_REQUEST;
    public static final String STATUSES_REQUEST_URL = OCR_URL + STATUS_REQUEST;

    public static String getStatusUrl(String uid) {
        return OCR_URL + uid + "/" + STATUS_REQUEST;
    }

    public static String getDownloadUrl(String uid) {
        return OCR_URL + uid + "/" + DOWNLOAD_REQUEST;
    }
}
